package com.example.mybatisplusdemo.util;

import java.util.ArrayList;
import java.util.List;

public class ListUtil {
    public static <T> List<T> ListOf(T... args) {
        if (args == null || args.length == 0) {
            return new ArrayList<>(0);
        }
        List<T> result = new ArrayList<>(args.length);
        for (T arg : args) {
            result.add(arg);
        }
        return result;
    }

}
